<template>
	<view class="">
		<u-popup :show="showPopup" mode="bottom" round="10" :closeOnClickOverlay="true">
			<view class="popup-1">
				<view class="title">
					<view class=""></view>
					<view style="display: flex; align-items: center;">
						<u-icon name="error-circle" size="28rpx" color="#FF4040"></u-icon>
						<text style="margin-left: 12rpx;">购票须知</text>
					</view>
					<view class="close-icon">
						<u-icon @click="showPopup = false" name="close-circle" size="34rpx" color="rgb(144, 147, 153)">
						</u-icon>
					</view>
				</view>
				<blockquote v-for="item in readingListData" :key="item.configId" style="margin-bottom: 16rpx;">
					<view class="label">{{item.title}}</view>
					<text class="content">{{item.content}}</text>
				</blockquote>
			</view>
		</u-popup>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				showPopup: false,
				readingListData: []
			}
		},
		methods: {
			async init(options) {
				this.showPopup = true;
				this.readingListData = [];
				let res = await this.$http.instructionsList({
					f1: options.productCode
				});
				console.log(res.data.rows);
				this.readingListData = res.data.rows;
			},
		},
	}
</script>

<style lang="scss" scoped>
	.popup-1 {
		padding: 20rpx 30rpx 20rpx 50rpx;
		box-sizing: border-box;
		min-height: 520rpx;
		

		.title {
			position: relative;
			color: #333333;
			font-size: 30rpx;
			font-weight: bold;
			margin-bottom: 40rpx;
			width: 100%;
			text-align: center;
			display: flex;
			align-items: center;
			justify-content: space-between;
		}

		.label {
			font-size: 28rpx;
			font-weight: bold;
			position: relative;
			padding-bottom: 8rpx;

			&::after {
				content: "";
				position: absolute;
				top: 50%;
				left: -20rpx;
				transform: translate(0, -50%);
				border-radius: 50%;
				background-color: #333333;
				width: 8rpx;
				height: 8rpx;
			}
		}

		.content {
			font-size: 26rpx;
			color: #333333;
		}
	}
</style>
